# 基础镜像
FROM centos:7.6

# 镜像创建者
MAINTAINER centos7.6 CSGO Docker Image "enovo458@126.com" author "drophair"

RUN yum install -y wget
RUN cd /etc/yum.repos.d/ && mv CentOS-Base.repo CentOS-Base.repo.back && wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo && yum clean all && yum makecache
RUN echo "23.42.182.65 store.steampowered.com" >> /etc/hosts && echo "23.200.152.81 store.steampowered.com" >> /etc/hosts && echo "104.119.104.79 store.steampowered.com" >> /etc/hosts
RUN useradd -m steam && su steam && cd /home/steam && mkdir steamcmd && cd steamcmd && wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz && tar zxvf steamcmd_linux.tar.gz && rm -rf steamcmd_linux.tar.gz
RUN yum install -y glibc.i686&& yum install -y libstdc++.i686 && ./steamcmd.sh
#RUN login anonymous && force_install_dir ./csgo_server && app_update 740 validate && quit
#RUN wget https://gitee.com/drophair/docker-sh/raw/master/dependency/csgo/csgo_server_update.sh && wget https://gitee.com/drophair/docker-sh/raw/master/dependency/csgo/update.txt && chmod 775 csgo_server_update.sh && ./csgo_server_update.sh
#RUN cd /home/steam/steamcmd/csgo_server/csgo/cfg/
